import random

okd1 = int(input("количество выстрелов: "))
if okd1 < 0:
  print("Пишите число больше нуля")
  exit()
nwp1 = 1
nwp2 = 0
nwp3 = 0
nwp4 = 0
nwp5 = 0
nwp6 = 0
while nwp1 == 1:
  rand1 = random.randint(-100, 100)
  rand2 = random.randint(-100, 100)
  if rand1 > 0 and rand2 > 0 and rand1 < 6 and rand2 < 6:
    nwp3 = nwp3+1
  if rand1 < 0 and rand2 < 0 and rand1 > -8 and rand2 > -9:
    nwp4 = nwp4+1
  if rand1 > 0 and rand2 < 0 and rand1 < 6 and rand2 > -9:
    nwp5 = nwp5+1
  if rand1 < 0 and rand2 > 0 and rand1 > -8 and rand2 < 6:
    nwp6 = nwp6+1
  nwp2 = nwp2+1
  if nwp2 == okd1:
    nwp1=0
    kvopopad = nwp3+nwp4+nwp5+nwp6
    print("Количество выстрелов ", okd1)
    print("Количество попаданий ", kvopopad)
